package org.joseph.springcloud.service;

import org.joseph.springcloud.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "SPRINGCLOUD-PROVIDER-DEPT",fallbackFactory=UserClientServiceFallbackFactory.class)
@Component
public interface UserService {

    @GetMapping("/user/queryById/{id}")
    public User queryById(@PathVariable("id") long id);

    //******************************
//.........................................

}
